/* You can add global styles to this file, and also import other style files */
.content-section {
  position: relative;
  margin: 24px;
}

// 动态圆圈
.orna-circle {
  position: absolute;
  top: 50%;
  background-color: #7d6ee7;
  opacity: .078;
  width: 500px;
  height: 500px;
  margin-left: -250px;
  margin-top: -250px;
  -webkit-animation: circle_animation 7s linear infinite;
  animation: circle_animation 7s linear infinite;
}

@-webkit-keyframes circle_animation {

  0%,
  to {
    border-radius: 42% 58% 70% 30%/45% 45% 55% 55%;
    -webkit-transform: translateZ(0) rotate(.01deg);
    transform: translateZ(0) rotate(.01deg)
  }

  34% {
    border-radius: 70% 30% 46% 54%/30% 29% 71% 70%;
    -webkit-transform: translate3d(0, 5px, 0) rotate(.01deg);
    transform: translate3d(0, 5px, 0) rotate(.01deg)
  }

  50% {
    -webkit-transform: translateZ(0) rotate(.01deg);
    transform: translateZ(0) rotate(.01deg)
  }

  67% {
    border-radius: 100% 60% 60% 100%/100% 100% 60% 60%;
    -webkit-transform: translate3d(0, -3px, 0) rotate(.01deg);
    transform: translate3d(0, -3px, 0) rotate(.01deg)
  }
}

@keyframes circle_animation {

  0%,
  to {
    border-radius: 42% 58% 70% 30%/45% 45% 55% 55%;
    -webkit-transform: translateZ(0) rotate(.01deg);
    transform: translateZ(0) rotate(.01deg)
  }

  34% {
    border-radius: 70% 30% 46% 54%/30% 29% 71% 70%;
    -webkit-transform: translate3d(0, 5px, 0) rotate(.01deg);
    transform: translate3d(0, 5px, 0) rotate(.01deg)
  }

  50% {
    -webkit-transform: translateZ(0) rotate(.01deg);
    transform: translateZ(0) rotate(.01deg)
  }

  67% {
    border-radius: 100% 60% 60% 100%/100% 100% 60% 60%;
    -webkit-transform: translate3d(0, -3px, 0) rotate(.01deg);
    transform: translate3d(0, -3px, 0) rotate(.01deg)
  }
}

.mt0 {
  margin-top: 0;
}

.mt5 {
  margin-top: 5px;
}

.mt10 {
  margin-top: 10px;
}

.mt20 {
  margin-top: 20px !important;
}

.ml5 {
  margin-left: 5px;
}

.ml10 {
  margin-left: 10px;
}

.ml20 {
  margin-left: 20px;
}

.mr10 {
  margin-right: 10px;
}

.mr20 {
  margin-right: 20px;
}

.mb10 {
  margin-bottom: 10px;
}

.mb20 {
  margin-bottom: 20px;
}

.pt10 {
  padding-top: 10px;
}

.pl5 {
  padding-left: 5px;
}

.pl10 {
  padding-left: 10px;
}

.pr10 {
  padding-right: 10px;
}

.pb10 {
  padding-bottom: 10px;
}

.flex {
  display: flex;
}

.flex-1 {
  flex: 1;
}

.h100 {
  height: 100%;
}

.w100 {
  width: 100% !important;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.hidden {
  display: none;
}

.site-page-header {
  background-color: #ffffff;
}

.bell-container .ant-tabs-nav-list {
  margin: auto;
}

// drawer-handle
.nz-drawer-handle {
  h3 {
    margin-bottom: 12px;
    color: rgba(0, 0, 0, .85);
    font-size: 14px;
    line-height: 22px;
  }

  .checkbox {
    display: flex;
  }

  .checkbox-item {
    position: relative;
    margin-right: 16px;
    box-shadow: 0 1px 2.6px 0 rgba(0, 0, 0, .18);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    width: 44px;
    height: 36px;
    background-color: #f0f2f5;

    &:before {
      position: absolute;
      top: 0;
      left: 0;
      width: 33%;
      height: 100%;
      background-color: #fff;
      content: "";
    }

    &:after {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 25%;
      background-color: #fff;
      content: "";
    }

    i {
      position: absolute;
      bottom: 4px;
      right: 6px;
      color: #1890ff;
      font-weight: 700;
      font-size: 14px;
      pointer-events: none;
    }
  }


  .checkbox-item-menu-dark:before {
    background-color: #001529;
  }
}

.form-advanced-form-style-errorPopover {
  .ant-popover-inner-content {
    min-width: 256px;
    max-height: 290px;
    padding: 0;
    overflow: auto;
  }

  .ant-list-item {
    padding: 8px 16px;
    cursor: pointer;

    &:hover {
      background-color: #e6f7ff;
    }
  }

  .errorIcon {
    margin-top: 4px;
    margin-right: 12px;
    color: #ff4d4f;
  }

  .errorField {
    margin-top: 2px;
    color: rgba(0, 0, 0, .45);
    font-size: 12px;
  }
}

.list-table-list {
  .ant-popover-inner-content {
    padding: 6px 0;
  }

  .ant-list {
    width: 200px;
  }

  .cdk-drag-preview {
    box-sizing: border-box;
    border-radius: 4px;
    box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
      0 8px 10px 1px rgba(0, 0, 0, 0.14),
      0 3px 14px 2px rgba(0, 0, 0, 0.12);
  }

  .cdk-drag-placeholder {
    opacity: 0;
  }

  .cdk-drag-animating {
    transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
  }

  .ant-list-item:last-child {
    border: none;
  }

  .ant-list-item-meta-title {
    margin-bottom: 0;
  }

  .ant-list.cdk-drop-list-dragging .ant-list-item:not(.cdk-drag-placeholder) {
    transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
  }

  .ant-list-item {
    padding: 6px;
    line-height: 26px;

    .fixed {
      display: none;
    }

    &:hover {
      background-color: #e6f7ff;

      .fixed {
        display: inherit;
      }
    }
  }
}

// header
.dropdownBell {
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03);
  background-color: #ffffff;
  width: 336px;

  .ant-tabs-nav-scroll {
    text-align: center;
  }

  .ant-list-item {
    padding-left: 24px;
    padding-right: 24px;
    cursor: pointer;

    &:hover {
      background: #e6f7ff;
    }

    &.read {
      opacity: .4;
    }
  }

  .ant-list-item-meta-description {
    font-size: 12px;
  }

  .list-bottomBar {
    display: flex;
    border-top: 1px solid #f0f0f0;
    line-height: 46px;
    height: 46px;
    border-radius: 0 0 2px 2px;
    text-align: center;

    div {
      display: inline-block;
      width: 50%;
      cursor: pointer;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;

      &:not(:only-child):last-child {
        border-left: 1px solid #f0f0f0;
      }
    }
  }
}

// register
.register-popover {
  .password-content {
    width: 200px;
  }

  .error {
    color: #ff4d4f;
  }

  .warn {
    color: #faad14;
  }

  .success {
    color: #52c41a;
  }
}
